<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" isELIgnored="false"%>
<!-- jstl jsp的标签 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><!-- 使用额外的或者自定义标签  prefix-->
<%@ taglib prefix="page" uri="/WEB-INF/paging.tld"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
    String path = request.getContextPath();//取项目名
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+
            request.getServerPort()+path+"/";//取协议 主机名 端口
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <base href="<%=basePath%>">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <script type="text/javascript" src="static/js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="static/js/condition.js"></script>
    <script type="text/javascript" src="static/js/member/search.js"></script>
    <script type="text/javascript" src="static/js/dateUtils.js"></script>
    <style type="text/css">
        /*.main {width: 1200px;margin: 0 auto;}*/
        .searchForm {width: 1200px;margin: 0 auto;}
    </style>
</head>
<body>
<div class="main">
<div class="searchForm">
    <form action="StudentS" method="post">
        按姓名搜索<input type="text" name="mname"> 性别 男<input type="radio" name="msex" value="男">
        <input type="radio" name="msex" value="女">女

        按日期<input type="date" name="mbirthday">

            <select name="op">
                <option value="1">大于等于</option>
                <option value="2">小于等于</option>
                <option value="3">between and</option>
            </select>
        <input type="date" name="mbirthday2" style="display: none;">
        <input type="button" value="搜索" id="search">
    </form>
</div>
<!-- 当前页面是 student模块的循环出来的对象肯定是student --><!-- jsp支持用$表示的特殊变量 $语法叫做el表达式 -->
<c:set var="members" value="${dto.tList}"/>
<table border="1" class="listTab">
    <tr><th>头像</th><th>学号</th><th>姓名</th><th>性别</th><th>出生日期</th><th>入校日期</th></tr>
    <c:forEach var="customer" items="${dto.tList}" ><!-- items表示循环的集合 var表示声明的对象 -->
    <tr>
        <td><img src="upload/${customer.chead}"></td>
        <td>${customer.cid}</td>
        <td>${customer.cname}</td>
        <td>${customer.csex}</td>
        <td><fmt:formatDate value="${customer.cbirthday}" pattern="yyyy-MM-dd"/></td>




        <td><a href="memberController/member/${customer.cid}/update">修改</a></td>
    </tr>
    </c:forEach>
</table>
<div class="pageList">
    ${pageInfo.itemCount} ${pageInfo.pageSize}
    <!-- 和controller中请求分页的url对应-->
    <page:paging href="customerController/customers/page"
                 itemCount="${pageInfo.itemCount}"
                 currPage="${pageInfo.currPage}"
                 pageSize="${pageInfo.pageSize}"
    />
</div>
<div><a href="page/arrive/member/add">新增</a></div>
</div>
</body>
</html>